79b3d71c4c7fb071137b50e5623c366a36799ca5,Mango API/src/com/serotonin/m2m2/web/mvc/rest/v1/model/pointValue/PointValueRollupCalculator.java,PointValueRollupCalculator,setupDates,#,154

Before Change



	private void setupDates(){
        // Determine the start and end times.
        if (from == -1) {
            // Get the start and end from the point values table.
            LongPair lp = DaoRegistry.pointValueDao.getStartAndEndTime(Collections.singletonList(vo.getId()));
            from = lp.getL1();
            to = lp.getL2();
        }

	}

After Change


        if (from == null) {
            // Get the start and end from the point values table.
            LongPair lp = DaoRegistry.pointValueDao.getStartAndEndTime(Collections.singletonList(vo.getId()));
            from = new DateTime(lp.getL1());
            to = new DateTime(lp.getL2());
        }

	}